<!DOCTYPE>
<html lang="zh-cn">
	<head>
  		<meta charset="utf-8">
      	<meta http-equiv="X-UA-Compatible" content="IE=edge">
      	<link rel="shortcut icon" href="favicon.ico"/>
      	<title>{$shops['shopName']} - {$CONF['mallTitle']}</title>
      	<meta name="keywords" content="{$shops['shopKeywords']},首页" />
      	<meta name="description" content="{$CONF['mallDesc']},{$shops['shopDesc']}" />
      	<link rel="stylesheet" href="__ROOT__/Apps/Home/View/default/css/common.css" />
     	<link rel="stylesheet" href="__ROOT__/Apps/Home/View/default/css/shophome.css" />
     	<link rel="stylesheet" href="__ROOT__/Apps/Home/View/default/css/base.css" />
		<link rel="stylesheet" href="__ROOT__/Apps/Home/View/default/css/head.css" />
		<link href="__PUBLIC__/plugins/slide/css/slide.css" type="text/css" media="all" rel="stylesheet" />
		<style>
		.ck-slide { width: 100%; height: 320px; margin: 0 auto;}
		.ck-slide ul.ck-slide-wrapper { height: 320px;}
		</style>
   	</head>
   	<body>
   		<input type="hidden" id="msort" value="{$msort}"/>
   		<input type="hidden" id="mdesc" value="{$mdesc}"/>   		
   		<input type="hidden" id="shopId" value="{$shopId}"/>
   		<input type="hidden" id="ct1" value="{$ct1}"/>
   		<input type="hidden" id="ct2" value="{$ct2}"/>
		<include file="./Apps/Home/View/cake/Public/header.html" />
		<!-- <div>
			<if condition="$shops['shopBanner'] neq ''">
				<img class='lazyImg' data-original="__ROOT__/{$shops['shopBanner']}" width="100%" height="120"/>
			</if>
		</div> -->
		
		<!--banner-->
		<div class="banner">
			<div class="container">
				<h2 class="hdng">Adamry <span>Cakes</span> for u</h2>
				<p>Our best cakes make your day special</p>
				<a href="products.html">SHOP NOW</a>
				<div class="banner-text">			
					<img src="__ROOT__/Apps/Home/View/cake/images/2.png" alt=""/>	
				</div>
			</div>
		</div>			
		<!--//banner-->


		<!-- <if condition="count($shops['shopAds']) gt 0">
		<div>
			<div class="ck-slide">
				<ul class="ck-slide-wrapper">
					<volist name="shops['shopAds']" id="vo" key='i'>
						<li>
							<a target="_blank" onclick="addAccess({$vo['adId']})" href="{$vo['adURL']}" >
								<img class='lazyImg' data-original="__ROOT__/{$vo.adImg}" width="100%" height="350"/>
							</a>
						</li>
					</volist>
				</ul>
				<a href="javascript:;" class="ctrl-slide ck-prev" ></a> 
				<a href="javascript:;" class="ctrl-slide ck-next" ></a>
				<div class="ck-slidebox">
					<div class="slideWrap">
						<ul class="dot-wrap">
							<volist name="shops['shopAds']" id="vo" key='i'>
								<if condition="$i eq 1">
									<li class="current"><em>{$i}</em></li>
								<else/>
									<li><em>{$i}</em></li>
								</if>
							</volist>
						</ul>
					</div>
				</div>
			</div>
		</div>
		</if> -->


		<!--gallery-->
		<div class="gallery">
			<div class="container">
				<div class="gallery-grids">
					<div class="col-md-8 gallery-grid glry-one">
						<a href="products.html"><img src="__ROOT__/Apps/Home/View/cake/images/g1.jpg" class="img-responsive" alt=""/>
							<div class="gallery-info">
								<p><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> view</p>
								<a class="shop" href="single.html">SHOP NOW</a>
								<div class="clearfix"> </div>
							</div>
						</a>
						<div class="galy-info">
							<p>Lorem Ipsum is simply</p>
							<div class="galry">
								<div class="prices">
									<h5 class="item_price">$95.00</h5>
								</div>
								<div class="rating">
									<span>☆</span>
									<span>☆</span>
									<span>☆</span>
									<span>☆</span>
									<span>☆</span>
								</div>						
								<div class="clearfix"></div>
							</div>
						</div>
					</div>

					<div class="col-md-4 gallery-grid glry-two">
						<a href="products.html"><img src="__ROOT__/Apps/Home/View/cake/images/g2.jpg" class="img-responsive" alt=""/>
							<div class="gallery-info galrr-info-two">
								<p><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> view</p>
								<a class="shop" href="single.html">SHOP NOW</a>
								<div class="clearfix"> </div>
							</div>
						</a>
						<div class="galy-info">
							<p>Lorem Ipsum is simply</p>
							<div class="galry">
								<div class="prices">
									<h5 class="item_price">$95.00</h5>
								</div>
								<div class="rating">
									<span>☆</span>
									<span>☆</span>
									<span>☆</span>
									<span>☆</span>
									<span>☆</span>
								</div>						
								<div class="clearfix"></div>
							</div>
						</div>
					</div>

				<volist name="shopsgoods['root']" key="k" id="vo">
					<div class="col-md-3 gallery-grid ">
						<a href="{:U('Home/Goods/getGoodsDetails/',array('goodsId'=>$vo['goodsId']))}"><img src="__ROOT__/{$vo['goodsThums']}" width="300" class="img-responsive" alt=""/>
							<div class="gallery-info">
								<p><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> view</p>
								<a class="shop" href="{:U('Home/Goods/getGoodsDetails/',array('goodsId'=>$vo['goodsId']))}">SHOP NOW</a>
								<div class="clearfix"> </div>
							</div>
						</a>
						<div class="galy-info">
							<p>{$vo['goodsName']}</p>
							<div class="galry">
								<div class="prices">
									<h5 class="item_price">￥{$vo['shopPrice']}</h5>
								</div>

								<div class="goods-buy">
									<div class="goods-left">
										<span class='total-buy'>{$vo["totalnum"]?$vo["totalnum"]:0}</span>人已购买
									</div>
									<div class="goods-right">
									   <if condition="$vo['goodsStock'] gt 0">
									   <a href="javascript:addCart({$vo['goodsId']},0,'{$vo['goodsThums']}')" class="btnCart">
										<img src="__ROOT__/Apps/Home/View/default/images/btn_addcart.png" width="85"/>
									   </a>
									   <else/>
									   &nbsp;&nbsp;&nbsp;&nbsp;<font color='red'>(暂无商品)</font>
									   </if>
									</div>
									<div class="wst-clear"></div>
								</div>

								<div class="clearfix"></div>
							</div>
						</div>
					</div>
				</volist>

				</div>	
			</div>
		</div>
		<!--//gallery-->


		<!--subscribe-->
	<div class="subscribe">
		<div class="container">
			<h3>关注订阅</h3>
			<form>
				<input type="text" class="text" value="Email" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Email';}">
				<input type="submit" value="订阅">
			</form>
		</div>
	</div>
	<!--//subscribe-->

		<include file="./Apps/Home/View/cake/Public/footer.html" />
		<include file="./Apps/Home/View/cake/Public/right_cart.html" />
   	</body>
   	
   	<script src="__PUBLIC__/plugins/layer/layer.min.js"></script>
	<script src="__ROOT__/Apps/Home/View/default/js/shophome.js"></script>
	<script src="__PUBLIC__/js/common.js"></script>
	<script src="__ROOT__/Apps/Home/View/default/js/head.js" type="text/javascript"></script>
	<script src="__ROOT__/Apps/Home/View/default/js/common.js" type="text/javascript"></script>
	<script src="__PUBLIC__/plugins/slide/js/slide.js"></script>
	<script src="__ROOT__/Apps/Home/View/default/js/goods.js"></script>
	
	<script type="text/javascript">
	$(document).ready(function(){
		var docwidth = $(document).width();
		$(".ck-slide-wrapper img").width(docwidth);
		$('.ck-slide').ckSlide({
			autoPlay: true,
			time:5000,
			isAnimate:true,
			dir: 'x'
		});
		<if condition="$shopsgoods['totalPage'] gt 1">
		laypage({
			cont: 'wst-page-items',
			pages: {$shopsgoods['totalPage']}, //总页数
			skip: true, //是否开启跳页
			skin: '#e23e3d',
			groups: 3, //连续显示分页数
			curr: {$shopsgoods['currPage']}, 
			jump: function(e, first){ //触发分页后的回调
			    if(!first){ //一定要加此判断，否则初始时会无限刷新
			        var nuewurl = WST.splitURL("p");
			        var ulist = nuewurl.split("?");
			        if(ulist.length>1){
			        	location.href = nuewurl+'&p='+e.curr;
			        }else{
			        	location.href = '?p='+e.curr;
			        }     
			    }
			}
		});
		</if>
	});
	</script>
</html> 


